/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 系统用户与微信用户关联表Entity
 * @author lxy
 * @version 2019-07-25
 */
public class UserOpenid extends DataEntity<UserOpenid> {
	
	private static final long serialVersionUID = 1L;
	private String loginName;		// 用户登录名
	private String openid;		// 微信id
	private Integer status;		// 启用状态 0=不可用 1=可用
	private Integer sort;		// 排序
	
	public UserOpenid() {
		super();
	}

	public UserOpenid(String id){
		super(id);
	}

	@Length(min=0, max=50, message="用户登录名长度必须介于 0 和 50 之间")
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@Length(min=0, max=50, message="微信id长度必须介于 0 和 50 之间")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
}